import React from 'react';
import { connect } from 'react-redux';
import EditProfile from '../components/My/EditProfile';

class EditProfileContainer extends React.Component {
  render() {
    return (
      <EditProfile {...this.props} />
    );
  }
}

export default connect((state) => {
  const { dealerInfo, isSuccess, errMsg, avatorStore, userName, perTime, perIntro, perSex }
    = state.EditProfileReducer;
  const { PerformanceData } = state.MysReducer;
  return {
    dealerInfo,
    isSuccess,
    errMsg,
    avatorStore,
    userName,
    perTime, // 从业时间
    perIntro, // 个人介绍
    PerformanceData,
    perSex,
  };
})(EditProfileContainer);
